﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly">
    <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  <xsl:param name="rowcount"/>			<!--数据库总记录数-->
  <xsl:param name="maxrow"/>				<!--每页记录数-->
  <xsl:param name="curpage"/>				<!--当前页码-->
  <xsl:param name="param"/>					<!--引入 param 参数-->
  <xsl:param name="templatename"/>	<!--Label.xml 模块名称-->
  <xsl:param name="orderby"/>				<!--Label.xml orderby 参数-->
  <xsl:param name="where"/>					<!--Label.xml where 参数-->
  <xsl:param name="runtime"/>				<!--运行时长-->
  <msxsl:script language="javascript" implements-prefix="user">function StrSplit(Str,splitChar,n){
    if(Str.length=0){return '1'}
    var a=Str.replace(/'/g,"").split(splitChar);
    if(n&lt;a.length){
    if(a[n].length==0)return '1';
    return a[n];
    }
    return '1';
    }</msxsl:script>
  <xsl:template match="/">
    <!--标题开头-->
    <form id="form1" name="form1" method="post">
      <div class="titleA">
        <b class="f14"><font color="#333366">
        <xsl:if test="count(rows/row)=0">
          新增
        </xsl:if>
        <xsl:if test="count(rows/row)>0">
          编辑
        </xsl:if>
        模板</font></b>
      </div>
      <div class="dataEdit">
        <!--基本字段-->
        <div class="ColumnLine">
          <div class="ColumnNameLeft" style="width:100px">
            <u><strong>编码</strong></u>：
          </div>
          <div class="ColumnContent">
            <xsl:value-of select="rows/row/ID"/>&nbsp;&nbsp;
          </div>
        </div>
        <div class="ColumnLine">
          <div class="ColumnNameLeft" style="width:100px">
            <u><strong>模板名称</strong></u>：
          </div>
          <div class="ColumnContent">
            <input name="F_TemplateName" class="w300" type="text" value="{rows/row/F_TemplateName}" id="F_TemplateName"  />
          </div>
        </div>
        <div class="ColumnLine">
          <div class="ColumnNameLeft" style="width:100px">
            <strong><u>模板路径</u></strong>：
          </div>
          <div class="ColumnContent">
            <input name="F_TemplatePath" class="w300" id="F_TemplatePath" value="{rows/row/F_TemplatePath}" size="50" maxlength="50"><xsl:attribute name="onkeyup">$('showpath').innerHTML=this.value+'-{ID}.html'</xsl:attribute>
            </input>显示: <span id="showpath">{TPath}-{ID}.html</span>
          </div>
        </div>
        <div class="ColumnLine">
          <div class="ColumnNameLeft" style="width:100px">
            <strong><u>模板内容说明</u></strong>：
          </div>
          <div class="ColumnContent">
            <input name="F_TemplateContent" class="w300" id="F_TemplateContent" value="{rows/row/F_TemplateContent}" size="50" maxlength="50">
            </input>
            <font color="#9e9e9e">&nbsp;50个字符以内</font>
          </div>
        </div>
        <input name="editID" type="hidden" id="editID">
        <xsl:attribute name="value"><xsl:value-of select="rows/row/ID"/>
        <xsl:if test="count(rows/row)=0">
          0
        </xsl:if>
        </xsl:attribute>
        </input>
        <!--文章内容-->
        <div style="clear:both;line-height:30px;padding-left:100px;"><input name="f" type="hidden" value="@资讯模板" />
          <input class="btnA" id="Submit1" type="button" value="保存" name="Submit1">
          <xsl:attribute name="onclick">if(TM.saveContentCmd(this,form1,0)==1){TM.pList()}</xsl:attribute>
          </input>
          &nbsp; &nbsp;
          <input class="btnA" type="button" value="取消" name="button" onclick="TM.closeTab()"/>
          &nbsp; &nbsp;
          <input name="contenturl" type="hidden" id="contenturl" >
          <xsl:attribute name="value"><xsl:value-of select="rows/row/F_Content"/></xsl:attribute>
          </input>
        </div>
      </div>
    </form>
  </xsl:template>
</xsl:stylesheet>
